<include file="Public:pageheader" />
<script>
function xuan()
		{
		  var a=new Array();
		  var i;
		  var c=0;
		  for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
		  {
		  if(document.getElementsByName("quanxuan[]")[i].checked)
		    {
		     a[c]=document.getElementsByName("quanxuan[]")[i].value;
		     c++;
		     /*alert(a);*/
		  }
		  }
			if(a.length==0)
			{
			  alert("请选择");
			}
			else
			{
				var ss=confirm("确定删除?");
				if(ss==true)
				{
				  location.href="__APP__/Bury/all_delete/id/"+a;
				}
			}
		}
</script>
<table id="mytable" cellspacing="0" align="center">
<caption>Tag : {$Think.lang.list_bury}</caption>
<form method="post" action="__URL__/search">
姓名：<input type="text" name="name"/>
年龄：<input type="text" name="age"/>
住址：<input type="text" name="address">
<input type="submit" value="搜索"/>
</form>
<form><input type="button" value="新建落葬人信息" onclick="javascript:window.location.href='__APP__/Bury/add'"/></form>

<tr>
	<th scope="col">选择</th>
	<th scope="col">{$Think.lang.name}</th>
	<th scope="col">{$Think.lang.gender}</th>
	<th scope="col">{$Think.lang.age}</th>
	<th scope="col">{$Think.lang.born_time}</th>
	<th scope="col">{$Think.lang.dead_time}</th>

	<th scope="col">{$Think.lang.operation}</th>
</tr>
<iterate name="list" id="v">
<tr>
<th><input type="checkbox" name="quanxuan[]" value="{$v.id}"/></th>

<td><a href="__URL__/view/id/{$v.id}">{$v.name}</a></td>
<th scope="row" class="spec"><if condition="$v.gender eq 0">女<else/>男</if></th>
<th scope="row" class="spec">{$v.age}</th>
<th scope="row" class="spec">{$v.born_time|date='Y-m-d',###}</th>
<th scope="row" class="spec">{$v.dead_time|date='Y-m-d',###}</th>
<td align="center">
<a href="__URL__/edit/id/{$v.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>
<a href="__URL__/delete/id/{$v.id}" title="{$Think.lang.delete}" onclick="return confirm('你确定要删除吗？')"><img src="__PUBLIC__/images/cross.png" alt="{$Think.lang.delete}" /></a> 							
<a href="__URL__/view/id/{$v.id}" title="{$Think.lang.show}"><img src="__PUBLIC__/images/show.png" alt="{$Think.lang.show}" /></a>
</td>
</tr>
</eq>
</iterate>

</table><br>
<form>
<input type="button" value="全选" onclick="ck(true)"/><a href="javascript:xuan()">选择删除</a>
		
<input type="button" value="取消全选" onclick="ck(false)"/>
</form>
<br>
&nbsp&nbsp&nbsp&nbsp{$page}
<include file="Public:footer" />